]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
style: Shift dash running indicator dot up a pixel in high contrast mode
authorSebastian Keller <skeller@gnome.org>
Wed, 22 May 2024 00:04:53 +0000 (02:04 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 22 May 2024 22:22:48 +0000 (00:22 +0200)
With the dot now being placed correctly at the bottom of the hover
highlight it is now also overlapping the 1px inset shadow used as
outline in high contrast mode. To avoid this, shift the dot up
accordingly.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3245>
(cherry picked from commit e2adc5a4453ad535d6fc676ddf33862be669b7b7)

data/theme/gnome-shell-sass/widgets/_dash.scss

index ecb7912954aeeaa07c6a07b5da68e226c470427e..7e0766ed9223d83d1c3d026215df9ddce18a2147 100644 (file)
@@ -69,7 +69,11 @@ $dash_spacing: $base_margin * 0.5;
     // running app dot
     .app-grid-running-dot {
       // manually position the dot within the dash item
-      offset-y: -$dash_padding;
+      @if $contrast == 'high' {
+        offset-y: -$dash_padding - 1px; // don't draw dot directly on inset
+      } @else {
+        offset-y: -$dash_padding;
+      }
     }
   }